<template>
  <h1>El-下拉选框组件</h1>
  <el-select placeholder="选一个你喜欢的城市" style="width: 200px" v-model="city">
    <el-option label="成都" value="成都"></el-option>
    <el-option label="重庆" value="重庆"></el-option>
    <el-option label="北京" value="北京"></el-option>
    <el-option label="上海" value="上海"></el-option>
    <el-option label="杭州" value="杭州"></el-option>
  </el-select>
  <h4>提交的值:{{city}}</h4>
</template>

<script setup>
import {ref} from "vue";

const city = ref('重庆');
</script>

<style scoped>

</style>